cmake_minimum_required(VERSION 3.15)

project(SerialBusTest)

set(CMAKE_CXX_STANDARD 11)

include_directories(
    ${CMAKE_SOURCE_DIR}/SerialBus/ControlCAN/x86_VS2022/include
    ${CMAKE_SOURCE_DIR}/SerialBus/CSerialPort/x86_VS2022/include
    ${CMAKE_SOURCE_DIR}/Interface
    ${CMAKE_SOURCE_DIR}/Protocol
    ${CMAKE_SOURCE_DIR}/
    )
link_directories(${CMAKE_SOURCE_DIR}/SerialBus/ControlCAN/x86_VS2022/lib
                  ${CMAKE_SOURCE_DIR}/SerialBus/CSerialPort/x86_VS2022/lib
                  )
#Protocol/uart_mbus.cpp
add_executable(SerialBusTest main.cpp Interface/uart_Interface.cpp Protocol/uart_mbus.cpp)

target_link_libraries(SerialBusTest setupapi libcserialport.dll)